package com.web.controller;

import com.yuliu.User.IUserService;
import com.yuliu.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("user")
public class UserController {

    @Autowired
    protected IUserService iUserService;

    @RequestMapping("tes")
    public String test(){
        System.out.println("通过");
        return "Default";
    }

    @RequestMapping("find")
    public String find(int id){
        User id1 = iUserService.findId(id);
        System.out.println("显示Mappering 跟 Service的联合" + id1);
        return "Default";
    }

    @RequestMapping("edit")
    public String edit(){
        return "Modules/User/UserEdit";
    }

    @RequestMapping("info")
    public String info(){
        return "Modules/User/UserInfo";
    }

    @RequestMapping("manage")
    public String Manage(){
        return "Modules/User/UserManage";
    }

    @RequestMapping("update")
    public String update(){
        return "Modules/User/UserUpdate";
    }

}
